import { IImageParams } from "../pages/material/types";
import http from "./request";


export function fetchImages(params: IImageParams) {
  return http({
    url: '/user/images', params
    ,
    method: 'get'
  })
}
export function fetchImageCollect(id: number, parmas: { collect: boolean }) {
  return http.put('user/images/' + id, parmas)
}
export function fetchDelImage(id: number) {
  return http.delete('user/images/' + id)
}